package com.sales.fallback;

import com.sales.client.StaffSalesClient;
import com.sales.controller.QuotationController;
import feign.hystrix.FallbackFactory;
import org.comple.erp.pojo.base.enterprise.Staff;
import org.comple.erp.remote.base.StaffRemote;
import org.comple.erp.utils.AjaxResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import java.util.Collections;
import java.util.List;
import java.util.Map;

@Component
public class StaffSalesClientFallback  implements FallbackFactory<StaffRemote> {
    private final Logger logger = LoggerFactory.getLogger(StaffSalesClientFallback.class);

    @Override
    public StaffRemote create(Throwable throwable) {
        return new StaffRemote() {

            @Override
            public AjaxResult selectSaleStaff(String s) {
                return null;
            }

            @Override
            public AjaxResult selectById(String s) {
                return null;
            }
        };
    }
}
